﻿using System.Windows;
using Microsoft.Phone.Controls;

namespace DevPhoneToolkitSample.Samples
{
    public partial class DropDownControlBasicSample : PhoneApplicationPage
    {
        public DropDownControlBasicSample()
        {
            InitializeComponent();
        }

        private void OptLeftClick(object sender, RoutedEventArgs e)
        {
            Cbo1.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Left;
            Cbo2.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Left;
            Cbo3.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Left;
        }

        private void OptRightClick(object sender, RoutedEventArgs e)
        {
            Cbo1.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Right;
            Cbo2.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Right;
            Cbo3.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Right;
        }

        private void OptCenterClick(object sender, RoutedEventArgs e)
        {
            Cbo1.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Center;
            Cbo2.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Center;
            Cbo3.ContainerAlignment = DevPhone.Controls.DropDownContainerAlignment.Center;
        }
    }
}